<script>

setTimeout(function(){
    console.log(123)
},1000)

new Promise((resolve,reject) => {
    setTimeout(function(){resolve(234)},1000)
}).then(res => {
    console.log(res)
})

</script>